package com.gxa.modules.pc.sys.homepage.controller;

import com.gxa.common.utils.Result;
import com.gxa.modules.pc.fee.dto.OutPatientCoRecordsdto;
import com.gxa.modules.pc.sys.homepage.service.HomePageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName HomePageController
 * @Description
 * @Author Mr.YUAN
 * @Date 2022/11/17 13:09
 */
@Api(tags = "后台首页")
@RestController
@RequestMapping("/homepage")
public class HomePageController {

    @Autowired
    private HomePageService homePageService;

    @ApiOperation("后台首页动态数据")
    @GetMapping("/list")
    public Result list() {
        Result result = homePageService.queryHomePage();
        return result;
    }

}